<div class="dialog" [hidden]="!visible">
  <p>dialog works!</p>
  <button (click)="onClose()">点我关闭</button>
</div>
